Patients with hypothyroidism or hyperthyroidism that are not controlled on treatment